import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import http from './http'
import tool from '../static/js/tool'
import ElementUI from 'element-ui'
import md5 from 'js-md5'
import htmlToPdf from './htmlToPdf'
import axios from 'axios'
import '../static/css/reset.css'
import '../static/css/swiper.css'
import '../static/fonts/iconfont.css'
import 'element-ui/lib/theme-chalk/index.css'
Vue.prototype.$axios = axios
Vue.prototype.$md5 = md5
Vue.prototype.$tool = tool
Vue.prototype.$http = http
Vue.prototype.$upload = 'http://chaoyang.nxers.com/api/v1/file/files'//'http://chaoyang.nxers.com/api/v1/file/files'
// Vue.prototype.$upload = 'http://cyteam.org.cn/api/v1/file/files'//'http://chaoyang.nxers.com/api/v1/file/files'
Vue.prototype.$jump = function (url) {
  this.$router.push({
    name: url
  })
}
Vue.prototype.$jParams = function (url, parameters) {
  // console.log(parameters)
  this.$router.push({
    name: url,
    params: parameters
  })
}
Vue.prototype.$jP = function (url, queryters) {
  this.$router.push({
    name: url,
    query: queryters
  })
}

Vue.use(htmlToPdf)
Vue.use(ElementUI)
Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
